import request from '@/utils/request'

export default{

    getTeacherById(id){
        return request({
            url: `/admin/user/teacher/getById/${id}`,
            method: 'get'
          })
     },

     getByUsername(){
        return request({
            url: `/admin/user/teacher/getByUsername`,
            method: 'get'
          })
      },

     update(obj){
        return request({
            url: `/admin/user/teacher/update`,
            method: 'put',
            data: obj
          })
     },

     
     getCountInfo(){
      return request({
        url: `/admin/user/getCountInfo`,
        method: 'get'
      })
    }
}